home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Night Owl 6
/
Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso
/
029a
/
grepl.zip
/
GREPL.DOC
next >
Wrap
Text File
|
1991-11-16
|
3KB
|
69 lines
GrepL
Written by
Gene Mangum
7108 Stony Creek Dr.
Ypsilanti, MI 48197
CIS: 72357,3547
GrepL is a quick-n-dirty TurboVision front-end for the GREP utility
supplied with Borland languages. I wrote it because I find myself
constantly using GREP to look for an example of some feature or
function in a program (either a Borland example or a program I have
written or downloaded). But sometimes it's a real pain. I can't
find a good search string, and I get a long list of files to check.
I have to write down the file names, and list them from the command
line. It's a laborious process and a waste of time! GrepL makes
this task easier.
When you invoke GrepL, you enter a search expression and a file mask
into a dialog box, set a couple of switches, and hit the "Search"
button. GrepL Execs Borlands GREP, redirecting the output to a
temporary file, and gives you a list box containing file names of
"hits", with the hit count for each file in parenthesis. You can
then select the files you wish to view using the README.COM program
also supplied by Borland (must rename to "LIST.EXE") or your
favorite list utility.
Like I said, this is quick and dirty. I am giving some thought to
writing a more sophisticated version to allow, for example, multiple
search strings with "and" and "or" logic, tailorable edit and list
facilities, history lists of search strings and file masks saved
across sessions, multiple result list boxes on the screen together,
possibly searching contents of archived files, etc. If there is
much interest in something like this as shareware, please drop me an
EMail or a postcard and tell me what features you'd like to see.
For a good shareware version I'd need to write my own GREP (otherwise
boolean logic searches would be slow).
This version of GrepL is "freeware", free but copyrighted. If you
find it of value or have any comments about it, I'd appreciate a
note (EMail or postcard) so I can get a feel for its usage. You
are encouraged to share GrepL with others as long as it is accompanied
by this doc file unmodified. Please DO NOT give others the GREP and
README programs from your language products, since these programs are
under Borland copyright! If I write my own grep for a shareware
version, this problem could be circumvented...
To use GrepL, you MUST:
- Place GREPL.EXE into the same directory as GREP.COM from
Borland (or another grep which uses the same switches).
- Either rename README.COM (from Borland) to LIST.EXE or have
another list or edit program named LIST.EXE.
- Place this LIST.EXE in the same directory with GREPL.EXE
Grepl always looks in the directory where it lives for GREP and
LIST.